<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/master.xhtml">

        <ui:define name="menu">
            <ui:include src="../menu.xhtml" /> 
        </ui:define>

         <ui:define name="TituloModulo">
            Gestão de Financeira
        </ui:define>
                
        <ui:define name="TituloConteudoPrincipal">
            Registar Tipo
        </ui:define>


        <ui:define name="ConteudoPrincipal">
            
            <p:messages globalOnly="true"/>
            
            <h:form>
                <h:panelGrid columns="3">
                    <h:outputLabel value="#{bundle.nomeTipoConta}" for="nomeTipoConta" />
                    <p:inputText id="nomeTipoConta" value="#{tipoContaController.selected.nomeTipoConta}" title="#{bundle.nomeTipoConta}" required="true" requiredMessage="#{bundle.obrigatorio}" />
                    <p:message for="nomeTipoConta"/>
                </h:panelGrid>
                
                <p:commandButton action="#{tipoContaController.create}" value="#{bundle.salvar}"  ajax="false"/>
                <p:commandButton action="#{tipoContaController.prepareList}" value="#{bundle.listar}" immediate="true" ajax="false"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
